package com.fengye.eshop.service.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author fengyexjtu@126.com
 * @date 2022年05月14日 9:14 PM
 */
@Component
@ConfigurationProperties(prefix = "aliyun")
@RefreshScope
@Data
public class ConfigProperties {

    @Value("${orderId1:1}")
    private String order1;

    @Value("${orderId2:1}")
    private String order2;

    @Value("${orderId3:1}")
    private String order3;

    @Value("${orderId4:1}")
    private String order4;
}
